﻿using System;
using System.ComponentModel;
using System.IO;
using Styx.Helpers;
using Styx;

namespace LevelingHelper
{
    public class LHSettings : Settings
    {

        private static LHSettings _instance;

        public LHSettings()
            : base(Path.Combine(Path.Combine(SettingsDirectory, "LevelingHelper"), string.Format("LHSettings_{0}.xml", StyxWoW.Me.Name)))
        { }

        public static LHSettings Instance { get { return _instance ?? (_instance = new LHSettings()); } }

        #region Category: Random buff

        [Setting]
        [Category("Random buff")]
        [DisplayName("Enable Buff")]
        public Boolean UseRandomBuff { get; set; }

        [Setting]
        [Category("Random buff")]
        [Styx.Helpers.DefaultValue(0)]
        [DisplayName("Buff AuraID")]
        public int BuffAuraID { get; set; }

        [Setting]
        [Category("Random buff")]
        [Styx.Helpers.DefaultValue(0)]
        [DisplayName("Buff ItemID")]
        public int BuffItemID { get; set; }

        #endregion

        #region Guild Invites

        [Setting]
        [Category("Guild")]
        [Styx.Helpers.DefaultValue(false)]
        [DisplayName("Auto-accept invites")]
        [Description("Will automatically accept invites from lv25 guilds")]
        public Boolean AutoAcceptGuildInvites { get; set; }

        #endregion

        #region Category : InventoryHandler

        [Setting]
        [Category("Inventory")]
        [Styx.Helpers.DefaultValue(false)]
        [DisplayName("Enabled bag cleanup")]
        [Description("Will remove/use/.. any item fucking up leveling")]
        public Boolean EnableInventoryCleanup { get; set; }

        #endregion

    }
}
